// src/routes/planets/planets.controller.js
// const planets = require('../../models/planets.model');
// // 导⼊ planets 数据模型
// function getAllPlanets(req, res) {
//  return res.status(200).json(planets);
// }

// src/routes/planets/planets.controller.js
// src/routes/planets/planets.controller.js
const { getAllPlanets } = require('../../models/planets.model');
function httpGetAllPlanets(req, res) {
  return res.status(200).json(getAllPlanets());
}
module.exports = {
  httpGetAllPlanets,
};